/*
 * MiniCartaUI.java
 *
 * Created on 17 de Dezembro de 2006, 15:22
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package caraacara;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import java.util.Vector;
import javax.swing.JLabel;

/**
 *
 * @author HP
 */
public class MiniCartaUI extends javax.swing.JLabel {
    
    private ImageIcon imgOculta;
    private ImageIcon imgVisivel;
    
    private boolean visivel = true; 
    
    /** Creates a new instance of MiniCartaUI */
    public MiniCartaUI() {
        this.setText(null);
        imgOculta = new ImageIcon("imagens\\mini_oculta.jpg" );
        imgVisivel = new ImageIcon("imagens\\mini_visivel.jpg" );
        this.setVisivel(visivel);
    }
    
     public void setVisivel(boolean isVisivel) {
        visivel = isVisivel;
        if (isVisivel) {
            this.setIcon(imgVisivel);
        } else {
            this.setIcon(imgOculta);
        }
     }
     
    public boolean isVisivel() {
        return visivel;
    }

    
}
